package cn.lsngo.manager.greendao;

import org.greenrobot.greendao.annotation.Convert;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

import java.util.List;

import cn.lsngo.manager.ElectricConvert;
import cn.lsngo.manager.ElectricDetailBean;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @author : admin
 * @Title :
 * @date : 2021/12/21 18:08
 */
@Entity(nameInDb = "electric")
public class ElectricBean {
    @Id(autoincrement = true)
    private Long id;

    @Property(nameInDb = "createTime")
    private String createTime;

    @Property(nameInDb = "updateTime")
    private String updateTime;

    @Property(nameInDb = "amountMoney")
    private String amountMoney;

    @Convert(columnType = String.class, converter = ElectricConvert.class)
    @Property(nameInDb = "list")
    private List<ElectricDetailBean> list;



    @Generated(hash = 549339497)
    public ElectricBean(Long id, String createTime, String updateTime,
            String amountMoney, List<ElectricDetailBean> list) {
        this.id = id;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.amountMoney = amountMoney;
        this.list = list;
    }

    @Generated(hash = 92524847)
    public ElectricBean() {
    }



    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<ElectricDetailBean> getList() {
        return this.list;
    }

    public void setList(List<ElectricDetailBean> mList) {
        this.list = mList;
    }

    public String getAmountMoney() {
        return this.amountMoney;
    }

    public void setAmountMoney(String amountMoney) {
        this.amountMoney = amountMoney;
    }
}
